package com.quanyue.mechanics.config;

import com.quanyue.auto.fs.LocalDomainConfig;
import com.quanyue.mechanics.user.service.DomainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class LocalDomainConfigImpl implements LocalDomainConfig {

    @Autowired
    private DomainService domainService;

    @Override
    public String domain(Integer merchantNo) {
        return domainService.findApprovedDomain(merchantNo);
    }
}
